home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 98 / Skunkware 98.iso / src / fileutil / tar-1.12.tar.gz / tar-1.12.tar / tar-1.12 / AM-PATCHES < prev    next >
Text File  |  1997-04-23  |  10KB  |  290 lines

  1. --- automake-1.1n-ref/automake.in    Thu Apr  3 21:09:32 1997
  2. +++ automake-1.1n/automake.in    Wed Apr 23 07:17:43 1997
  3. @@ -51,6 +51,7 @@
  4.  $AM_PACKAGE_VERSION_PATTERN = "^\\s*\\[?([^]\\s]+)\\]?\\s*\$";
  5.  # Note that there is no AC_PATH_TOOL.  But we don't really care.
  6.  $AC_CHECK_PATTERN = "AC_(CHECK|PATH)_(PROG|PROGS|TOOL)\\(\\[?(\\w+)";
  7. +$AM_MISSING_PATTERN = "AM_MISSING_PROG\\(\\[?(\\w+)";
  8.  # Just check for alphanumeric in AC_SUBST.  If you do AC_SUBST(5),
  9.  # then too bad.
  10.  $AC_SUBST_PATTERN = "AC_SUBST\\(\\[?(\\w+)";
  11. @@ -885,12 +886,15 @@
  12.      #
  13.      # Handle some ansi2knr cleanup.
  14.      #
  15. -    if (defined $options{'ansi2knr'} && keys %de_ansi_objects)
  16. +    if (defined $options{'ansi2knr'} && keys %de_ansi_bases)
  17.      {
  18. -    # Make all ._o files depend on ansi2knr.  Use a sneaky little
  19. -    # hack to make it print nicely.
  20. -    &pretty_print_rule ('', '', (sort keys %de_ansi_objects,
  21. -                     ':', '$(ANSI2KNR)'));
  22. +    $output_rules .= "\n";
  23. +    foreach $base (sort keys %de_ansi_bases)
  24. +    {
  25. +        $output_rules .= $base . '._c: ' . $base . '.c $(ANSI2KNR)'
  26. +        . "\n\t" . '$(ANSI2KNR) $(srcdir)/' . $base . '.c > '
  27. +            . $base . '.tmp && mv ' . $base . '.tmp $@' . "\n";
  28. +    }
  29.      }
  30.  
  31.      #
  32. @@ -930,7 +934,7 @@
  33.      if ($use_interlock)
  34.      {
  35.      $output_rules .= '$(SHELL) $(INTERLOCK) =yacclockdir $(YLWRAP)'
  36. -        . ' "$(YACC)" y.tab.c $*' . $c_suffix 
  37. +        . ' "$(YACC)" y.tab.c $*' . $c_suffix
  38.          . ' y.tab.h $*.h -- $(YFLAGS) $<';
  39.      }
  40.      else
  41. @@ -953,9 +957,9 @@
  42.      &define_configure_variable ('LEX_OUTPUT_ROOT');
  43.      &define_configure_variable ('LEXLIB');
  44.      $output_rules .= "$lex_suffix$c_suffix:\n\t";
  45. -    
  46. +
  47.      if ($use_interlock)
  48. -    { 
  49. +    {
  50.          # is the $@ correct here?  If so, why not use it in the
  51.          # interlock build rule for yacc above?
  52.      $output_rules .= '$(SHELL) $(INTERLOCK) =lexlockdir $(YLWRAP)'
  53. @@ -1038,7 +1042,7 @@
  54.          # distribution.  If the extension is the regular '.y' or
  55.          # '.l', we assume C compilation, and the generated file
  56.          # has exension .c.  Otherwise, we compile with C++, and
  57. -        # make the following association: (yy -> cc, y++ -> c++, 
  58. +        # make the following association: (yy -> cc, y++ -> c++,
  59.          # yxx -> cxx), similarly for .ll, etc.
  60.          if (/^(.*)\.(y|yy|y\+\+|yxx)$/)
  61.          {
  62. @@ -1080,17 +1084,16 @@
  63.          {
  64.          # .s is assembly.  Just rewrite it.  FIXME: not finished.
  65.          }
  66. -        elsif (s/\.[cly]$/._o/)
  67. +        elsif (s/\.[cly]$//)
  68.          {
  69.          # .c is C.  .l is lex.  .y is yacc.
  70.  
  71. -        # Note: first we rewrite (eg) foo.c to foo._o and push
  72. -        # the file onto the list of objects that require
  73. -        # ansi2knr.  Then we rewrite ._o to $obj; $obj can be
  74. -        # simply `.o' if deansification is not really
  75. -        # required.
  76. -        $de_ansi_objects{$_} = 1;
  77. -        s/\._o$/$obj/;
  78. +        # Note: first we rewrite (eg) foo.c to foo and push the file
  79. +        # onto the list of source bases that require ansi2knr.  Then
  80. +        # we suffix $obj; $obj can be simply `.o' if deansification
  81. +        # is not really required.
  82. +        $de_ansi_bases{$_} = 1;
  83. +        s/$/$obj/;
  84.          $seen_c_source = -1 unless $seen_c_source;
  85.          }
  86.          else
  87. @@ -1906,7 +1909,7 @@
  88.      # Find these programs wherever they may lie.  Yes, this has
  89.      # intimate knowledge of the structure of the texinfo distribution.
  90.      &define_program_variable ('MAKEINFO', 'build', 'texinfo/makeinfo',
  91. -                  '@MAKEINFO@');
  92. +                  'makeinfo', '@MAKEINFO@');
  93.      &define_program_variable ('TEXI2DVI', 'src', 'texinfo/util',
  94.                    'texi2dvi');
  95.  
  96. @@ -2330,7 +2333,7 @@
  97.  # tarfile.
  98.  distcheck: dist
  99.      rm -rf $(distdir)
  100. -    GZIP=$(GZIP) $(TAR) zxf $(distdir).tar.gz
  101. +    GZIP=$(GZIP) $(TAR) zxf $(distdir).tar.gz --mode=a+r
  102.      mkdir $(distdir)/=build
  103.      mkdir $(distdir)/=inst
  104.      dc_install_base=`cd $(distdir)/=inst && pwd`; \\'
  105. @@ -3792,6 +3795,10 @@
  106.      {
  107.          $configure_vars{$3} = 1;
  108.      }
  109. +    if (/$AM_MISSING_PATTERN/o)
  110. +    {
  111. +        $configure_vars{$1} = 1;
  112. +    }
  113.  
  114.      # Explicitly avoid ANSI2KNR -- we AC_SUBST that in protos.m4,
  115.      # but later define it elsewhere.  This is pretty hacky.  We
  116. @@ -4154,9 +4161,16 @@
  117.  #            be found.  (runtest is in srcdir!)
  118.  # * SUBDIR   Subdir of top-level dir
  119.  # * PROGRAM  Name of program
  120. +# * OVERRIDE If specified, the name of the program to use when not in
  121. +#            Cygnus mode.  Defaults to PROGRAM.
  122.  sub define_program_variable
  123.  {
  124. -    local ($var, $whatdir, $subdir, $program) = @_;
  125. +    local ($var, $whatdir, $subdir, $program, $override) = @_;
  126. +
  127. +    if (! $override)
  128. +    {
  129. +    $override = $program;
  130. +    }
  131.  
  132.      if ($cygnus_mode)
  133.      {
  134. @@ -4168,7 +4182,7 @@
  135.      }
  136.      else
  137.      {
  138. -    &define_variable ($var, $program);
  139. +    &define_variable ($var, $override);
  140.      }
  141.  }
  142.  
  143. @@ -4469,14 +4483,13 @@
  144.      # Ignore return result from chmod, because it might give an error
  145.      # if we chmod a symlink.
  146.      $dist_header = "\t" . '-chmod -R a+r $(distdir)' . "\n";
  147. -    $dist{'tarZ'} = ("\t"
  148. -             . '$(TAR) chf - $(distdir) | compress -c > $(distdir).tar.Z'
  149. -             . "\n");
  150. -    $dist{'shar'} = ("\t"
  151. -             . 'shar $(distdir) | gzip > $(distdir).shar.gz'
  152. -             . "\n");
  153. +    $dist{'tarZ'} = "\t" . '$(TAR) chf - $(distdir) --mode=a+r'
  154. +    . ' | compress -c > $(distdir).tar.Z' . "\n";
  155. +    $dist{'shar'} = "\t" . 'shar $(distdir) | gzip > $(distdir).shar.gz' . "\n";
  156.      $dist{'zip'} = "\t" . 'zip -rq $(distdir).zip $(distdir)' . "\n";
  157. -    $dist{'dist'} = "\t" .  'GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir)' . "\n";
  158. +    $dist{'dist'} = "\t"
  159. +    .  'GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz --mode=a+r $(distdir)'
  160. +        . "\n";
  161.      $dist_trailer = "\t" . 'rm -rf $(distdir)' . "\n";
  162.  }
  163.  
  164. @@ -4592,9 +4605,9 @@
  165.      # This is a list of all targets to run during "make dist".
  166.      @dist_targets = ();
  167.  
  168. -    # Keys in this hash are the names of ._o files which must depend
  169. +    # Keys in this hash are the base names of ._c files which must depend
  170.      # on ansi2knr.  Ugh.
  171. -    %de_ansi_objects = ();
  172. +    %de_ansi_bases = ();
  173.  }
  174.  
  175.  
  176. --- automake-1.1n-ref/compile-kr.am    Tue Dec  3 20:54:39 1996
  177. +++ automake-1.1n/compile-kr.am    Tue Apr 22 13:55:21 1997
  178. @@ -15,8 +15,6 @@
  179.  ## along with this program; if not, write to the Free Software
  180.  ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  181.  ## 02111-1307, USA.
  182. -.c._c:
  183. -    $(ANSI2KNR) $< > $*.tmp && mv $*.tmp $@
  184.  
  185.  ._c._o:
  186.      @echo "$(COMPILE) -c $<"
  187. @@ -27,15 +25,3 @@
  188.      @echo "$(LIBTOOL) --mode=compile $(COMPILE) -c $<"
  189.      @rm -f _$*.c
  190.      @ln $< _$*.c && $(LIBTOOL) --mode=compile $(COMPILE) -c _$*.c && mv _$*.lo $@ && rm _$*.c
  191. -
  192. -.c._o:
  193. -    $(ANSI2KNR) $< > $*.tmp && mv $*.tmp $*._c
  194. -    @echo "$(COMPILE) -c $*._c"
  195. -    @rm -f _$*.c
  196. -    @ln $*._c _$*.c && $(COMPILE) -c _$*.c && mv _$*.o $@ && rm _$*.c
  197. -
  198. -.c.l_o:
  199. -    $(ANSI2KNR) $< > $*.tmp && mv $*.tmp $*._c
  200. -    @echo "$(LIBTOOL) --mode=compile $(COMPILE) -c $*._c"
  201. -    @rm -f _$*.c
  202. -    @ln $*._c _$*.c && $(LIBTOOL) --mode=compile $(COMPILE) -c _$*.c && mv _$*.lo $@ && rm _$*.c
  203. --- automake-1.1n-ref/mdate-sh    Wed Apr  2 02:22:28 1997
  204. +++ automake-1.1n/mdate-sh    Sat Apr 12 18:35:23 1997
  205. @@ -1,7 +1,7 @@
  206.  #!/bin/sh
  207. -# mdate-sh - get modification time of a file and pretty-print it
  208. -# Copyright (C) 1995 Free Software Foundation, Inc.
  209. -# Written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, June 1995
  210. +# Get modification time of a file or directory and pretty-print it.
  211. +# Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
  212. +# written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, June 1995
  213.  #
  214.  # This program is free software; you can redistribute it and/or modify
  215.  # it under the terms of the GNU General Public License as published by
  216. @@ -14,8 +14,8 @@
  217.  # GNU General Public License for more details.
  218.  #
  219.  # You should have received a copy of the GNU General Public License
  220. -# along with this program; if not, write to the Free Software
  221. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  222. +# along with this program; if not, write to the Free Software Foundation,
  223. +# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  224.  
  225.  # Prevent date giving response in another language.
  226.  LANG=C
  227. @@ -26,13 +26,14 @@
  228.  export LC_TIME
  229.  
  230.  # Get the extended ls output of the file or directory.
  231. +# On HPUX /bin/sh, "set" interprets "-rw-r--r--" as options, so the "x" below.
  232.  if ls -L /dev/null 1>/dev/null 2>&1; then
  233. -  set - `ls -L -l -d $1`
  234. +  set - x`ls -L -l -d $1`
  235.  else
  236. -  set - `ls -l -d $1`
  237. +  set - x`ls -l -d $1`
  238.  fi
  239. -# The month is at least the fourth argument.
  240. -# (3 shifts here, the next inside the loop)
  241. +# The month is at least the fourth argument
  242. +# (3 shifts here, the next inside the loop).
  243.  shift
  244.  shift
  245.  shift
  246. diff -ur automake-1.1n-ref/mkinstalldirs automake-1.1n/mkinstalldirs
  247. --- automake-1.1n-ref/mkinstalldirs    Fri Apr  5 02:26:24 1996
  248. +++ automake-1.1n/mkinstalldirs    Tue May  7 13:16:48 1996
  249. @@ -2,17 +2,20 @@
  250.  # mkinstalldirs --- make directory hierarchy
  251.  # Author: Noah Friedman <friedman@prep.ai.mit.edu>
  252.  # Created: 1993-05-16
  253. -# Last modified: 1994-03-25
  254.  # Public domain
  255.  
  256. +# $Id: mkinstalldirs,v 1.10 1996/05/03 07:37:52 friedman Exp $
  257. +
  258.  errstatus=0
  259.  
  260. -for file in ${1+"$@"} ; do 
  261. +for file
  262. +do
  263.     set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
  264.     shift
  265.  
  266.     pathcomp=
  267. -   for d in ${1+"$@"} ; do
  268. +   for d
  269. +   do
  270.       pathcomp="$pathcomp$d"
  271.       case "$pathcomp" in
  272.         -* ) pathcomp=./$pathcomp ;;
  273. @@ -20,11 +23,12 @@
  274.  
  275.       if test ! -d "$pathcomp"; then
  276.          echo "mkdir $pathcomp" 1>&2
  277. -        mkdir "$pathcomp" > /dev/null 2>&1 || lasterr=$?
  278. -     fi
  279.  
  280. -     if test ! -d "$pathcomp"; then
  281. -    errstatus=$lasterr
  282. +        mkdir "$pathcomp" || lasterr=$?
  283. +
  284. +        if test ! -d "$pathcomp"; then
  285. +        errstatus=$lasterr
  286. +        fi
  287.       fi
  288.  
  289.       pathcomp="$pathcomp/"
  290.